 function loadByIp(){
	 if(!App.getGetCity()){
		 Result.doResult( {
			 url:  Interface.zs.orgGetOrgByIP,
			 data: {},
			 type: "POST",
			 async: false,
		 }, function ( data ) {
			 console.log(data);
			 App.setCity(data);
			 App.setGetCity();
			 App.setUseCity(data);
		 }, function ( desc ) {
			 App.setGetCity();
	       //Result.alert( "对不起:" + desc );
		 }, function ( err ) {
			 Result.alert( "错误:" + JSON.stringify(err));
		 } );
	 }
 }
 
 

 
 function getImagePre(){
	 if(!App.getImgPreCookie()){
		 Result.doResult( {
			 url:  Interface.zs.sysinfoGetSysinfo,
			 data: {},
			 type: "POST",
			 async: false,
		 }, function ( data ) {
			 console.log(data.IMG_URL);
			 App.setImgPreCookie(data.IMG_URL);
		 }, function ( desc ) {
			 Result.alert( "对不起:" + desc );
		 }, function ( err ) {
			 Result.alert( "错误:" + JSON.stringify(err));
		 } );
	 }
	 Interface.image.pre = App.getImgPreCookie();
 }
 
 ;( function () {
	 "use strict";
	 $( function () {
		 getImagePre();
	 });
	 
 }( window ) );
 
function logout(){
	//清理缓存
	if(confirm("您是否确定要退出？")){
		App.loginOutRemoveCookie();
		Result.forward(App.loginUrl(), {});
		return;
	}
}


/**
 * 跳到个人中心页面
 */
function forwardPersionPage(){
	Result.forward(App.getPersonUrl(), {});
	return;
}

/**
 * 跳到修改密码页面
 */
function forwardModifyPassPage(){
	Result.forward(App.getModifyPasswordPageUrl(), {});
	return;
}
/**
 * 跳到注册页面
 */
function forwardZhuce(){
	Result.forward(App.getZhucePageUrl(), {});
	return;
}

/**
 * 跳到登录页
 */
function forwardLoginPage(){
	Result.forward("../login/login.html", {});
	return;
}

